package com.tlias.exam.mapper;

import com.github.pagehelper.Page;
import com.tlias.exam.pojo.Goods;
import com.tlias.exam.pojo.QueryGoodsDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 29 4月 2025 16:24
 */
@Mapper
public interface GoogMapper {

    Page<Goods> queryGoods(QueryGoodsDTO queryGoodsDTO);

    @Select("select * from goods where id = #{id}")
    Goods getGoodsXJ(Integer id);



    void addGoods(Goods goods);

    void updateGoods(Goods goods);

    void deleteGoods(List<Integer> ids);


}
